import request from '@/utils/request'

// 查询活动报名列表
export function listEnroll(query) {
  return request({
    url: '/community/cpc/enroll/list',
    method: 'get',
    params: query
  })
}

export function listParticipate(query) {
  return request({
    url: '/community/cpc/participate/list',
    method: 'get',
    params: query
  })
}

// 查询Id对应活动的报名列表
export function listEnrollById(id) {
  return request({
    url: '/community/cpc/enroll/list/' + id,
    method: 'get'
  })
}

export function listParticipateById(id) {
  return request({
    url: '/community/cpc/participate/list/' + id,
    method: 'get'
  })
}

// 查询活动报名详情详细
export function getEnroll(id) {
  return request({
    url: '/community/cpc/enroll/' + id,
    method: 'get'
  })
}

// 删除活动报名详情
export function delEnroll(id) {
  return request({
    url: '/community/cpc/enroll/' + id,
    method: 'delete'
  })
}

// 导出活动报名详情
export function exportEnroll(query) {
  return request({
    url: '/community/cpc/enroll/export',
    method: 'get',
    params: query
  })
}
